
import router from './router'
const bacck = {
  bind(el, binding) {
    el.onclick = function() {
      router.go(-1)
    }
  },
  update(el, binding) {

  },
  unbind(el, binding) {

  }
}

const install = function(Vue) {
  Vue.directive('waves', bacck)
}

if (window.Vue) {
  window.bacck = bacck
    Vue.use(install); // eslint-disable-line
}
